package com.callbox.frontend;

import com.callbox.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class Splash extends Activity {
	
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.splash);
		
		Handler handler = new Handler();
		handler.postDelayed(getRunnableStartApp(), 3000);

	}
	
	private Runnable getRunnableStartApp(){
		
		Runnable runnable = new Runnable(){
			public void run(){
				
				Intent intent = new Intent(Splash.this, ValidateNumber.class);
				startActivity(intent);
				finish();
				
			}
		};
		return runnable;
	}

}
